package com.mf.controller.basic;


import cn.dev33.satoken.annotation.SaCheckLogin;
import com.mf.aspect.debounces.Debounce;
import com.mf.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import com.mf.entity.dto.basic.DtoApiLog;
import com.mf.service.basic.ServiceApiLog;
import com.mf.entity.req.basic.search.SearchReqApiLog;

/**
 * 接口调用记录
 */
@RestController
@RequestMapping("apiLog")
@Tag(name = "接口调用记录")
@SaCheckLogin
@Debounce
public class ControllerApiLog {
    @Resource
    private ServiceApiLog serviceapiLog;

    @Operation(summary = "分页列表查询")
    @PostMapping("/page")
    public Result<Page<DtoApiLog>> findPage(@RequestBody SearchReqApiLog searchReqApiLog) {
        return Result.success(serviceapiLog.findPageByParams(searchReqApiLog));
    }

}
